<template>
  <div class="com-operation-row">
    <el-scrollbar>
      <div class="com-operation-row-container">
        <div class="com-operation-row-content">
          <slot />
        </div>
        <div class="children-center com-operation-row-content-right">
          <slot name="right"></slot>
        </div>
      </div>
    </el-scrollbar>
  </div>
</template>

<script lang="ts">
export default {
  //组件名称
  name: 'ComOperationRow',
}
</script>
<style lang="scss">
.com-operation-row {
  line-height: 32px;
  margin-bottom: 20px;

  .com-operation-row-container {
    display: flex;
    justify-content: space-between;
    min-width: 100%;
    .com-operation-row-content,
    .com-operation-row-content-right {
      display: flex;
      align-items: center;
      & > * {
        flex-shrink: 0;
        margin-right: 16px;
      }
      & > .el-input,
      & > .el-select {
        width: 200px;
      }
      & > *:last-child {
        margin: 0;
      }
      & > .el-button + .el-button {
        margin-left: 0;
      }
    }
  }
}
</style>
